{% extends "./base.html" %}
{% block css %}{{block.super}}
	<link href="{{APPSTATIC}}css/mine-article.css" rel="stylesheet">
{% endblock %}
{% block js %}{{block.super}}
	<script src="{{APPSTATIC}}js/mine-article.js"></script>
{% endblock %}
{% block content %}
	<h1>
		<i class="icon icon-book"></i> 我的博客
		<a class="add" href="publish"><i class="icon icon-edit"></i>添加</a>
	</h1>
	<ul class="article-list">
		{% for item in articles %}
			<li>
				<span class="status">{{item.get_status_display}}</span>
				<a href="{{APPURL}}article/view?id={{item.id}}">{{item.title}}</a>
				<div class="time">
					<i class="icon icon-time"></i>
					{{item.create_time|date:"Y-m-d H:i:s"}}
				</div>
				<p class="desc">{{item.description|slice:"100"}}</p>
				<div class="tags">
					<i class="icon icon-tags"></i>
					{% for tag in item.tagv %}
						<span class="tag">{{tag}}</span>
					{% endfor %}
				</div>
				<div class="bottom">
					<i class="icon icon-view"></i> <span>{{item.view_count}}</span>
					<i class="icon icon-comments"></i> <span>{{item.comment_count}}</span>
					<a class="btn" href="article_edit?id={{item.id}}">
						<i class="icon icon-edit"></i>编辑
					</a>
					<a class="delete" href="article_del?id={{item.id}}">
						<i class="icon icon-delete"></i>删除
					</a>
				</div>
			</li>
		{% endfor %}
	</ul>
{% endblock %}